package com.bluedot.www.core.pojo.DO;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 算法表，包括预处理算法和分析算法
 * </p>
 *
 * @author zhouxuan
 * @since 2021-08-07
 */
public class Algorithm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 算法表id
     */
    private Long id;

    /**
     * 算法类型（0：表示预处理算法，1：表示分析算法）
     */
    private Integer type;

    /**
     * 算法名称，20个字符
     */
    private String title;

    /**
     * 算法文件存储的位置
     */
    private String location;

    /**
     * 用户编号
     */
    private Long userId;

    /**
     * 算法描述
     */
    private String description;

    /**
     * 是否删除（0:表示未删，1：表示删除）
     */
    private Integer isDeleted;

    private Timestamp gmtCreate;

    private Timestamp gmtModified;

    /**
     * 是否为默认算法（0：表示不是默认算法，1：默认算法）
     */
    private Integer isDefault;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Timestamp getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Timestamp gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Timestamp getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Timestamp gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    public String toString() {
        return "Algorithm{" +
                "id=" + id +
                ", type=" + type +
                ", title=" + title +
                ", localtion=" + location +
                ", userId=" + userId +
                ", description=" + description +
                ", isDeleted=" + isDeleted +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", isDefault=" + isDefault +
                "}";
    }
}
